package com.dify.tool.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dify.tool.api.dto.TechnicalGenerateRecordDTO;
import com.dify.tool.api.vo.TechnicalGenerateRecordVO;
import com.dify.tool.common.model.DefaultResponse;
import com.dify.tool.service.ITechnicalGenerateRecordService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springdoc.core.annotations.ParameterObject;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 技术方案历史记录相关接口
 * </p>
 *
 * @author shl
 * @since 2025-05-30
 */
@Slf4j
@RestController
@RequestMapping("/technicalGenerateRecord")
@Tag(description = "technicalGenerateRecord", name = "技术方案历史记录相关接口")
public class TechnicalGenerateRecordController {

    @Resource
    private ITechnicalGenerateRecordService iTechnicalGenerateRecordService;

    /**
     * 招标信息记录查询
     */
    @GetMapping("/pageList")
    @Operation(summary = "招标信息记录查询")
    public DefaultResponse<IPage<TechnicalGenerateRecordVO>> pageList(@ParameterObject Page page, @ParameterObject TechnicalGenerateRecordDTO query) {
        return DefaultResponse.success(iTechnicalGenerateRecordService.pageList(page, query));
    }
}
